﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>demo slidad</title>
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" type="text/css" href="../main.css" >
    <script src="../../release/jskit.core.js"></script>
	
    <script src="../JskitConfig_doc.js"></script>
     <script>
 		var jskitSlidAd = new JskitSlidAd("jskitSlidAd");
		function onPageLoad(){
			jskitSlidAd.init({
				data : [
					{url:"#1"	,pic:"../../ui/ad/images/1.png"	,title:"1"},
					{url:"#2"	,pic:"../../ui/ad/images/2.png"	,title:"2"},
					{url:"#3"	,pic:"../../ui/ad/images/3.png"	,title:"3"},
					{url:"#4"	,pic:"../../ui/ad/images/4.png"	,title:"4"}
				],
				width:400,//img width
				height:300,//img height
				target:"_self",//link target
				canvas:"slidad_canvas",//html object id
				imgBoxCss:"img_box",//html object id
				numBoxCss:"num_box",//html object id
				step:3 //slid spead,second
			});
			jskitSlidAd.start();
		}
    </script>
  </head>
  
   <body onload="onPageLoad()">
   		<table>
   			<tr>
   				<td class="package">轮显广告</td>
   			</tr>
			<tr>
				<td class="content">
					/ui/ad/slid/JskitSlidAd.js
				</td>
			</tr>
			<tr>
				<td class="title">
					Required:
				</td>
			</tr>
			<tr>
				<td class="content">
					none
				</td>
			</tr>
			<tr>
				<td class="title">
					Demo:
				</td>
			</tr>
			<tr>
				<td class="content">
					<div id="slidad_canvas">
						Loading...
					</div>
				</td>
			</tr>
			<tr>
				<td class="title">
					Using:
				</td>
			</tr>
   			<tr>
   				<td>
					javascript code:
					<textarea class="js"  name="JskitSyntax_code" >
 		var jskitSlidAd = new JskitSlidAd("jskitSlidAd");
		function onPageLoad(){
			jskitSlidAd.init({
				data : [
					{url:"#1"	,pic:"../ui/ad/images/1.png"	,title:"1"},
					{url:"#2"	,pic:"../ui/ad/images/2.png"	,title:"2"},
					{url:"#3"	,pic:"../ui/ad/images/3.png"	,title:"3"},
					{url:"#4"	,pic:"../ui/ad/images/4.png"	,title:"4"}
				],
				width:400,//img width
				height:300,//img height
				target:"_self",//link target
				canvas:"slidad_canvas",//html object id
				imgBoxCss:"img_box",//html object css class
				numBoxCss:"num_box",//html object css class
				step:3 //slid spead,second
			});
			jskitSlidAd.start();
		}
		</textarea>
		html code
		<textarea class="html"  name="JskitSyntax_code" >
 			&lt;div id="slidad_canvas"&gt;Loading...&lt;/div&gt;
		</textarea>
		css code
		<textarea class="css"  name="JskitSyntax_code" >
		.img_box{
	position:relative;
}
.img_box img{
	position:absolute;
	top:0px;
	border:0px;
}
.img_box a{
	border:0px;
	text-decoration:none;
	color:transparent;
}
.img_box a:hover{
	border:0px;
	text-decoration:none;
	color:transparent;
}
.num_box{
	z-index:100;
	position:absolute;
	top:70px;
	left:0px;
	width:300px;
	height:30px;
	background-image:url(../../ui/ad/JskitSlidAd/images/num_bar.png);
	background-position:right center;
	background-repeat:no-repeat;
}
.num_box .num{
	cursor:pointer;
	width:20px;
	height:20px;
	background-image:url(../../ui/ad/JskitSlidAd/images/num_bg.png);
	background-position:center center;
	background-repeat:no-repeat;
	color:#ffffff;
	font-family:verdana;
	font-size:12px;
	font-weight:bold;
	float:right;
	margin-right:10px;
	margin-top:3px;
	text-align:center;
	padding-top:4px;
}
.num_box .current{
	cursor:pointer;
	width:20px;
	height:20px;
	float:right;
	background-image:url(../../ui/ad/JskitSlidAd/images/num_bg_a.png);
	background-position:center center;
	background-repeat:no-repeat;
	color:#ffffff;
	font-family:verdana;
	font-size:12px;
	font-weight:bold;
	padding-top:4px;
	margin-right:10px;
	text-align:center;
	margin-top:3px;
}
		</textarea>

   				</td>
   			</tr>
   		</table>
</BODY>
</HTML>
